<template>
  <div>
    <div>
      <h4>基础状态</h4>
      <el-row type="flex" justify="space-between">
        <el-col :span="7">
          <span>意识障碍程度：</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.basic_state_radio1" style="width: 99%;">
              <el-radio :label="1">清醒</el-radio>
              <el-radio :label="2">嗜睡</el-radio>
              <el-radio :label="3">浅昏迷</el-radio>
              <el-radio :label="4">深昏迷</el-radio>
              <el-input v-model="pgForm.basic_state_input1" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="7">
          <span>精神状态：</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.basic_state_radio2" style="width: 99%;">
              <el-radio :label="1">正常</el-radio>
              <el-radio :label="2">稍差</el-radio>
              <el-radio :label="3">很差</el-radio>
              <el-input v-model="pgForm.basic_state_input2" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="7">
          <span>颈部活动：</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.basic_state_radio3" style="width: 99%;">
              <el-radio :label="1">正常</el-radio>
              <el-radio :label="2">异常</el-radio>
              <el-radio :label="3">左侧屈</el-radio>
              <el-radio :label="4">右侧屈</el-radio>
              <el-radio :label="5">前屈</el-radio>
              <el-radio :label="6">后伸</el-radio>
              <el-radio :label="7">左旋</el-radio>
              <el-radio :label="8">右旋</el-radio>
              <el-input v-model="pgForm.basic_state_input3" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "basic_state",
  title: "基础状态",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data () {
    return {
      pgForm: {
        basic_state_radio1: '',
        basic_state_radio2: '',
        basic_state_radio3: '',
        basic_state_input1: '',
        basic_state_input2: '',
        basic_state_input3: ''
      }
    };
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-radio-group{
  padding: 10px 20px;
}
.el-radio{
  display: block;
  margin-bottom: 15px;
}
</style>
